package com.xiaomei.manager.web.controller;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;


import com.xiaomei.manager.service.IBroadcastService;
import com.xiaomei.manager.web.dto.req.DayPostDto;

import com.xiaomei.manager.web.page.Page;

@Controller
@RequestMapping("/daypost")
public class DayPostController {
	@Autowired
	private IBroadcastService iBroadcastService;
	@RequiresPermissions("daypost:view")
	@RequestMapping()
	public String list(Model model,Page<DayPostDto> page) {
		iBroadcastService.getDayPost(page);
		model.addAttribute("page", page);
		return "bite/daypost";
	}
}
